package entity;

import com.example.login.R;

import java.util.ArrayList;
import java.util.List;

public class DataServer {
    public static List<ProductInfo> getListData(int position){
        List<ProductInfo>list=new ArrayList<>();
        if(position==0){
            list.add(new ProductInfo(1000, R.mipmap.food,"鸡蛋","xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",18));
        } else if (position==1) {
            list.add(new ProductInfo(1001, R.mipmap.drink,"可乐","xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",3));
        } else if (position==2) {
            list.add(new ProductInfo(1002, R.mipmap.dress,"女士裙子","xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",188));
        } else if (position==3) {
            list.add(new ProductInfo(1003, R.mipmap.energy,"全套家用电器定制","xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",10888));
        } else if (position==4) {
            list.add(new ProductInfo(1004, R.mipmap.dayly,"日用品","xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",22));
        }else{
            list.add(new ProductInfo(1005, R.mipmap.face,"化妆品套装","xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",266));
        }
        return list;
    }
}
